package com.example.demo.controller.testoom;

import com.example.demo.config.UrlProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author mdl
 * @date 2020/4/15 16:37
 */
@Controller
@Slf4j
@RequestMapping("testoom/")
public class TestOOMController {

    @Autowired
    private UrlProperties urlProperties;

    @RequestMapping(value ="/testHeapOOM", method = RequestMethod.GET)
    @ResponseBody
    public String testHeapOOM(){
        TestOOM oom = new TestOOM();
        oom.testHeapOOM();
        return "你好，Spring Boot";
    }

}
